export const yjTableConfig = [
  {
    prop: "subTaskName",
    label: "任务名称",
    align: "left",
    "min-width": "200px"
  },
  {
    prop: "subTaskType",
    label: "任务类型",
    align: "center",
    "min-width": "90px"
  },
  {
    prop: "profession",
    label: "专业",
    align: "center",
    "min-width": "60px"
  },
  {
    prop: "subTaskContent",
    label: "任务内容",
    align: "left",
    "min-width": "340px"
  },
  {
    prop: "fillUserDept",
    label: "派发单位/部门",
    align: "center",
    "min-width": "130px"
  },
  {
    prop: "approvalDept",
    label: "责任单位/部门",
    align: "center",
    "min-width": "130px"
  },
  {
    prop: "approvalTime",
    label: "发布时间",
    align: "center",
    "min-width": "180px"
  },
  {
    prop: "noticeOrderName",
    label: "预警通知单",
    align: "left",
    "min-width": "260px"

  },
  {
    prop: "taskStatus",
    label: "状态",
    align: "center",
    "min-width": "120px",
    formatter: (row, column, cellValue, index) => {
      const result = {
        "1": "编辑中",
        "2": "待审批",
        "3": "已发布",
        "4": "驳回",
        "5": "已接收",
        "6": "已反馈",
        "7": "未派遣",
        "8": "编辑中",
        "9": "待审批",
        "10": "已派遣",
        "11": "驳回",
        "12": "已下派",
        "23": "已下派"
      };
      return result[cellValue];
    }
  }
];



export const dwTableConfig = [
  {
    prop: "unit",
    label: "所属单位",
    align: "left"
  },
  {
    prop: "department",
    label: "所属部门",
    align: "left"
  },
  {
    prop: "teamLevel",
    label: "队伍层级",
    align: "center"
  },
  {
    prop: "teamName",
    label: "队伍名称",
    align: "center"
  },

  // {
  //   prop: "teamNature",
  //   label: "队伍性质",
  //   align: "left"
  // },
  {
    prop: "teamTypeName",
    label: "队伍类型",
    align: "center"
  },
  {
    prop: "teamMajor",
    label: "队伍专业",
    align: "center"
  },
  {
    prop: "captainName",
    label: "队长姓名",
    align: "center"
  },
  {
    prop: "contactWay",
    label: "联系方式",
    align: "left"
  },
  {
    prop: "captainAccount",
    label: "队长统一权限账号",
    align: "center"
  }, {
    prop: "captainCardNo",
    label: "队长身份证号",
    align: "left"
  },
  {
    prop: "voltageLevel",
    label: "从事最高电压等级",
    align: "center"
  },
  {
    prop: "teamStation",
    label: "队伍驻地",
    align: "center"
  },
  {
    prop: "teamLatitudeLongitude",
    label: "队伍驻地经纬度",
    align: "center"
  },
  {
    prop: "memberNum",
    label: "队伍人员",
    align: "center"
  },
  {
    prop: "occupationName",
    label: "工作状态",
    align: "center"
  }
];
export const clTableConfig = [
  {
    prop: "unit",
    label: "所属单位",
    minWidth: "160",
    align: "left"
  },
  {
    prop: "belongTeam",
    label: "所属队伍",
    align: "left"
  },
  {
    prop: "contractingUnit",
    label: "签约公司",
    align: "left"
  },
  {
    prop: "department",
    label: "所属部门",
    align: "left"
  },
  {
    prop: "vehicleProperties",
    label: "车辆性质",
    align: "left"
  },
  {
    prop: "vehicleUsage",
    label: "车辆用途",
    align: "left"
  },
  {
    prop: "vehicleType",
    label: "车辆类型",
    align: "left"
  },
  {
    prop: "vehicleNum",
    label: "车牌号码",
    align: "left"
  },
  {
    prop: "loadCapacity",
    label: "装载量",
    align: "left"
  },
  {
    prop: "driver",
    label: "司机姓名",
    align: "left"
  },
  {
    prop: "occupation",
    label: "工作状态",
    align: "left",
    formatter: (row, column, cellValue, index) => {
      const result = {
        0: "待命",
        1: "已调配"
      };
      return result[row.occupation];
    }
  }
];
export const zbTableConfig = [
  {
    prop: "unit",
    label: "所属单位",
    align: "left"
  },
  {
    prop: "department",
    label: "所属部门",
    align: "left"
  },
  {
    prop: "equipName",
    label: "装备名称",
    align: "left"
  },
  {
    prop: "associatedTeam",
    label: "所属队伍",
    align: "left"
  },
  {
    prop: "largeCategory",
    label: "装备大类",
    align: "left"
  },
  {
    prop: "smallCategory",
    label: "装备小类",
    align: "left"
  },
  // {
  //   prop: "equipCode",
  //   label: "装备编码",
  //   align: "left"
  // },
  {
    prop: "modelParameters",
    label: "型号参数",
    align: "left"
  },
  {
    prop: "preserver",
    label: "保管人",
    align: "left"
  },
  {
    prop: "contactWay",
    label: "联系方式",
    align: "left"
  }, {
    prop: "storageLocation",
    label: "库存地点",
    align: "left"
  }, {
    prop: "occupation",
    label: "工作状态",
    align: "left",
    formatter: (row, column, cellValue, index) => {
      const result = {
        0: "待命",
        1: "已调配"
      };
      return result[row.occupation];
    }
  }, {
    prop: "equipStatus",
    label: "维保状态",
    align: "left"
  }
];
export const wzTableConfig = [
  {
    prop: "unit",
    label: "所属单位",
    minWidth: "160px",
    align: "left"
  },
  {
    prop: "suppliesDescription",
    label: "物料描述",
    align: "left"
  },
  {
    prop: "suppliesCode",
    label: "物料编码",
    align: "left"
  },
  {
    prop: "largeCategory",
    label: "物资大类",
    align: "left"
  },
  {
    prop: "middleCategory",
    label: "物资中类",
    align: "left"
  },
  {
    prop: "smallCategory",
    label: "物资小类",
    align: "left"
  },
  {
    prop: "cklx",
    label: "仓库类型",
    align: "left"
  },
  {
    prop: "warehouse",
    label: "仓库名称",
    align: "left"
  },
  {
    prop: "warehouseId",
    label: "仓库编码",
    align: "left"
  },
  {
    prop: "count",
    label: "数量",
    align: "left"
  },
  {
    prop: "measure",
    label: "计量单位",
    align: "left"
  }
];
